
import org.apache.log4j.Logger;


import java.io.*;


/**
 * Created by IntelliJ IDEA.
 * User: ctaboch
 * Date: 12/18/11
 * Time: 3:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class Main {
    public static Logger logger = Logger.getLogger(Main.class);

    public static void main(String[] args) throws IOException {

        BufferedReader br;
        br = LogReader.readFile("COHAVIT_LT-JobsBroker_1@COHAVIT_LT.log");

        String strLine;
        //Read File Line By Line
        while ((strLine = br.readLine()) != null)   {

            if (strLine.contains("<-") & strLine.contains("<DCLCALL"))
                OutputManager.logLine(strLine,"<-");

            else if (strLine.contains("->") & strLine.contains("<DCLCALL"))
                OutputManager.logLine(strLine,"->");

        }

    }



}
